//  utils/request.js
import {request} from "../utils/request"
//获取专题列表
export function Topic() {
  return request({
    url: '/weChat/applet/subject/list',
    method: 'POST'
  })
}
// 请求轮播图
export function swiper() {
  return request({
    url: '/weChat/applet/course/banner/list',
    method: 'GET'
  })
}
//精品课程
export function courseList() {
  return request({
    url: '/weChat/applet/course/list/type',
    method: 'POST',
    header:{
      "Content-Type":"application/x-www-form-urlencoded"
    },
    data: {
      type: 'boutique',
      pageNum: 1,
      pageSize: 6
    }
  })
}
export function getClassfiy() {
  return request({
    url: '/weChat/applet/subject/list',
    method: 'POST',
    data:{
        "enable": "1"
    }
  })
}



